package cc.mcyx.ychat.config

import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.data.redis.connection.RedisConnectionFactory
import org.springframework.data.redis.core.RedisTemplate

@Configuration
open class RedisConfig {
    @Bean
    open fun redisTemplate(rcf: RedisConnectionFactory) =
        RedisTemplate<String, Any>().also { it.connectionFactory = rcf }
}